<template>
   <Modal title="添加" :closable="true" :maskClosable="true" v-model="addPageFlag" @on-ok="addOK('addForm')" @on-cancel="addCancel('addForm')">
                    <Form ref="addForm" :model="tmpForm">
                        <FormItem label="账号：" prop="account" :labelWidth="100"><Input type="text" v-model="tmpForm.account" placeholder="账号"/>
                        </FormItem>
                        <FormItem label="姓名：" prop="name" :labelWidth="100"><Input type="text" v-model="tmpForm.name" placeholder="姓名"/>
                        </FormItem>
                        <FormItem label="邮箱：" prop="email" :labelWidth="100"><Input type="text" v-model="tmpForm.email" placeholder="邮箱">
                        </FormItem>
                        <FormItem label="手机号：" prop="phone" :labelWidth="100"><Input type="text" v-model="tmpForm.phone" placeholder="手机号"/>
                        </FormItem>                       
                    </Form>
  </Modal>
</template>
<script>
export default {
  name:'user-add',
  props:{
    value:{
      type:Boolean,
      default:false
    }
  }
}
</script>